// Fill out your copyright notice in the Description page of Project Settings.


#include "BoomPlayerController.h"

#include "AbilitySystemComponent.h"
#include "BoomPlayerState.h"

//	Server Only
void ABoomPlayerController::OnPossess(APawn* InPawn)
{
	Super::OnPossess(InPawn);

	ABoomPlayerState* PS = GetPlayerState<ABoomPlayerState>();
	if(PS)
	{
		//	Init ASC with PS (Owner) and our new Pawn (AvatarActor)
		PS->GetAbilitySystemComponent()->InitAbilityActorInfo(PS, InPawn);
	}
}

void ABoomPlayerController::OnRep_PlayerState()
{
	Super::OnRep_PlayerState();

	// TODO: Create HUD
}
